<template>
  <div class="feedbackSchool">
    <div class="header margin_bottom">
      <image class="Img" src="../../static/index/head_bj.png"></image>
    </div>
    <div class="loveType margin_bottom">
      <div class="title">选择爱心捐款类型</div>
      <div class="content">
        <div class="item">教育助学</div>
        <div class="item">疫情防控捐款</div>
        <div class="item">其他爱心捐款</div>
      </div>
    </div>
    <div class="donation">
      <div class="donation_header">
        <div>
          <div class="donation_title">我要捐款</div>
        </div>
        <div class="right">
          <div class="item">
            <div style="display: flex; align-items: center">
              <u-icon :name="icon1" size="20"></u-icon>
              <div style="margin-left: 5px">我的排名</div>
            </div>
            <div style="font-size: 12px">第十名</div>
          </div>
          <div class="item">
            <div style="display: flex; align-items: center">
              <u-icon :name="icon2" size="20"></u-icon>
              <div style="margin-left: 5px">我的捐款</div>
            </div>
            <div style="font-size: 12px">1万元</div>
          </div>
          <div class="item" @click="donationRecordClick">
            <div style="display: flex; align-items: center">
              <u-icon :name="icon3" size="20"></u-icon>
              <div style="margin-left: 5px">捐款记录</div>
            </div>
          </div>
        </div>
      </div>
      <div class="donation_content">
        <div class="donation_item">500元</div>
        <div class="donation_item">1000元</div>
        <div class="donation_item">自设金额</div>
      </div>
    </div>
    <button class="btn">支付捐赠</button>
    <div class="certificate">
      <div class="content" @click="goCertificate">
        <image
          class="Img"
          :src="btnBj"
          style="width: 100%; height: 200px"
        ></image>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {
      icon1: require("@/static/index/huikui_icon1.png"),
      icon2: require("@/static/index/huikui_icon2.png"),
      icon3: require("@/static/index/huikui_icon3.png"),
      btnBj: require("@/static/index/huikui_bj2.png"),
    };
  },
  methods: {
    donationRecordClick() {
      uni.navigateTo({
        url: "/pages/feedbackSchool/donationRecord",
      });
    },
    goCertificate() {
      uni.navigateTo({
        url: "/pages/feedbackSchool/certificate",
      });
    },
  },
};
</script>
<style lang="scss" scoped>
.feedbackSchool {
  // padding: 15px;

  .header {
    width: 100%;
    height: 150px;
    background-color: #fff;
    border-radius: 10px;
    padding: 15px;

    .Img {
      width: 100%;
      height: 100%;
    }
  }

  .loveType {
    // height: 100px;
    background-color: #fff;
    border-radius: 10px;
    margin: 0 15px;
    margin-bottom: 10px;

    .title {
      display: inline-block;
      background-color: #ff6b6b;
      padding: 5px 10px;
      border-radius: 10px 0 10px 0;
      color: #fff;
    }

    .content {
      display: flex;
      justify-content: space-between;
      padding: 20px 10px;

      .item {
        padding: 5px 10px;
        border: 1px solid #cccbcb;
        border-radius: 5px;
      }
    }
  }

  .donation {
    // height: 200px;
    margin: 0 15px;
    background-color: #fff;
    border-radius: 10px;

    .donation_header {
      display: flex;

      .donation_title {
        // display: inline-block;
        background-color: #ff6b6b;
        padding: 5px 10px;
        border-radius: 10px 0 10px 0;
        color: #fff;
      }

      .right {
        display: flex;
        padding: 5px 0;
        .item {
          margin-left: 10px;
          text-align: center;
          font-size: 14px;
        }
      }
    }

    .donation_content {
      display: flex;
      justify-content: space-evenly;
      padding: 20px 10px;

      .donation_item {
        padding: 5px 15px;
        border: 1px solid #cccbcb;
        border-radius: 5px;
      }
    }
  }

  .btn {
    background-color: #df424b;
    width: 70%;
    margin-top: 10px;
    margin-bottom: 20px;
    color: #fff;
  }

  .certificate {
    width: 100%;
    // height: 240px;
    background-color: #fff;
    border-radius: 10px;
    padding: 15px;

    .content {
      width: 100%;
      height: 200px;
      // background: url(@/static/index/head_bj.png) no-repeat center/100% 100%;
      // background: url(@/static/index/huikui_bj2.png) no-repeat center/100% 100%;
      border-radius: 10px;
    }
  }
}

.margin_bottom {
  margin-bottom: 10px;
}
</style>
